export const optionCarType  = [
        { value: '1', label: '普运' },
        { value: '2', label: '冷运' },
      ];

export const optionPayStatus   = [
        { value: '1', label: '未结算' },
        { value: '2', label: '部分结算' },
        { value: '3', label: '已结算' },
      ];

export const otherOptionPayStatus   = [
        { value: '0', label: '未结算' },
        { value: '1', label: '已结算' },
      ];


export const optionOrderStatus  = [
        { value: '1', label: '未接单' },
        { value: '2', label: '已接单' },
        { value: '3', label: '待接货' },
        { value: '4', label: '审核失败' },
        { value: '5', label: '运输途中' },
        { value: '6', label: '已完成' },
        { value: '7', label: '异常' },
      ];

export const wayOptionOrderStatus  = [
        { value: '1', label: '已接单' },
        { value: '2', label: '已装货' },
        { value: '3', label: '运输途中' },
        { value: '4', label: '已完成' },
      ];

//列表分页
export class PageParams {
  public pageIndex = 1;
  public pageSize = 10;
  public setPage(index: number, size?: number) {
    this.pageIndex = index;
    this.pageSize = size || this.pageSize;
  }
}

export class parts extends PageParams {
  public dispatchOrderNo: string;   //派车单号
  public transportOrderNo: number;   //运单编号
  public orderNo: string;   //运单编号
  
  public deliverTime: string;   //发货日期
  public carType: number;       //车辆类别（1、普运2、冷运）
  public orderStatus: number;   //派车单状态（1、未接单2、已接单3、待接货4、审核失败5、运输途中6、已完成7、异常）
  public payStatus: number;   //结算状态
  public logisticsCompanyId: number;   // 物流公司id
}



//客服确认
export class HybConfirmSendOutGoodsDto {
    
constructor(
    public bankCardTransfer?: number,
    public dispatchOrderId?: number,
    public oilCardPay?: number,
    ){}
}

//客服审核
export class HybReviewDispatchOrderDto {
  constructor(
    public auditStatus?: boolean,
    public dispatchOrderId?: number,
  ){}
}

//确认指派金额
export class HybCheckMoney{
  constructor(
    public transportOrderId?: number,
    public oilCardPay?: number,
    public bankCardTransfer?: number,
  ){}
}

//项目订单司机调派
export class HybSendOutGoodsDto{
  public hybSendOutGoodDto: any=[];
  public orderId: number;
}

export class HybSendOutGoodDto {
  constructor(
    public deposit?: number,
    public driverId?: number,
    public bankCardTransfer?: number,
    public oilCardPay?: number,
    public carId?: any,
  ){}
    public dispatchType: number = 1;//暂定只有一个；
}

export class HybOrderDto {
  constructor(
    public carType?: string,
    public deliverTime?: string,
    public endCity?: string,
    public goodsWeight?: string,
    public isTrailer?: string,
    public orderId?: number,
    public orderNo?: string,
    public orderStatus?: string,
    public payStatus?: string,
    public startingCity?: string,
    public customerName?: string,
    public carNum?: number,
    public expectCostTime?: string,
    public freight?: number,
    public orderStatusStr?: any,
  ){}
}

export class HybSendOutGoodsInfoDto {
  constructor(
    public dispatchOrderId?: number,
    public dispatchOrderNo?: string,
    public transportOrderNo?: string,
    public transportOrderId?: number,
    public carType?: string,
    public carNum?: string,
    public customerName?: string,
    public freight?: number,
    public deliverTime?: string,
    public endCity?: string,
    public isTrailer?: string,
    public orderId?: number,
    public orderNo?: string,
    public orderStatus?: string,
    public payStatus?: string,
    public startingCity?: string,
    public bankCardTransfer?: number,
    public oilCardPay?: number,
    public driverType?: string,
    public driverName?: string,
    public driverMobile?: string,
    public deposit?: number,
    public logisticsCompanyName?: number,
    public expectCostTime?: number,
    public goodsWeight?: number,
    public headstockUrl?: string,
    public mainDriverLicenseUrl?: string,
    public copilotDriverLicenseUrl?: string,
    public roadTransportCertificateUrl?: string,
    public freightInsuranceUrl?: string,
    public driverAccount?: string,
    public companyName?: string,
    public driverPaths?: any,
    public orderStatusStr?: any,
  ){}
}

export class HybDriverPathDto{
  constructor(
    public address?: string,
    public createTime?: string,
    public lat?: string,
    public lng?: string,
    public orderRouteId?: number,
    public pics?: any[],
  ){}
}

export class HybTransportPic{
  constructor(
    public createTime?: string,
    public orderRouteId?: number,
    public picType?: number,
    public picUrl?: string,
    public remark?: string,
    public transportOrderId?: number,
    public transportPicId?: number,
  ){}
}